package com.qf;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author lixu
 */
@SpringBootApplication
@MapperScan(basePackages = {"com.qf.dao"})//Mybatis的基本包扫描
@EnableTransactionManagement //开启事务   1、创建事务管理器（底层Aop切面） 2、 开启事务注解
public class MybatisApplication {

    public static void main(String[] args) {
        SpringApplication.run(MybatisApplication.class,args);
    }
}
